﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tecnopez.Globals;

public partial class Globals_GenericMasterPageNoSecurity : System.Web.UI.MasterPage
{
    public string Titulo
    {
        get { return lblMasterTitulo.Text; }
        set
        {
            lblMasterTitulo.Text = value;
            this.Page.Title = value;
        }
    }

    public string Imagen
    {
        get { return imgMasterImage.ImageUrl; }
        set { imgMasterImage.ImageUrl = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack == false)
        {
            this.Estilo.Href = Functions.getHost(this.Page) + "Styles/StyleSheetTecnoPez.css";
        }
        lblFechaDeHoy.Text = DateTime.Now.ToString("dd' de 'MMMM' de 'yyyy");
    }
    protected override void OnPreRender(EventArgs e)
    {
      
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (this.Estilo.Href == "")
        {
            this.Estilo.Href = "../Styles/StyleSheetTecnoPez.css";
        }
        else
        {
            this.Estilo.Href = "";
        }
    }
    protected void loginStatus_LoggedOut(object sender, EventArgs e)
    {
        //verificar si es correcto esto. NICO
        Session.Abandon();
    }

}
